<script>on mouseUpglobal gColorCoverTrue,gDeskCoverTrueif gColorCoverTrue = "true" thenanswer "First uncover the Desktop by pushing the" && quote & "ColorCover off" & quote && "button."exit mouseUpend ifif gDeskCoverTrue = "true" thenanswer "First push the button" && quote & "DeskCover off." & quoteexit mouseUpend ifask "Choose a pattern: black, white, gray, darkGray, or lightGray."if it is empty thenexit mouseUpelseput "black,white,gray,darkGray,lightGray" into theListrepeat with i = 1 to the number of items in theListif it = item i of theList thenput "ok" into foundItDeskCover on,itif the result = empty thenput "true" into gDeskCoverTrueelseanswer the resultend ifexit repeatend ifend repeatif foundIt ≠ "ok" thenanswer "Incorrect pattern name. Try again."end ifend ifend mouseUp</script>
</part>
<part>
<id>3</id>
<type>field</type>
<visible> <true /> </visible>
<dontWrap> <false /> </dontWrap>
<dontSearch> <false /> </dontSearch>
<sharedText> <false /> </sharedText>
<fixedLineHeight> <false /> </fixedLineHeight>
<autoTab> <false /> </autoTab>
<lockText> <true /> </lockText>
<rect>
<left>15</left>
<top>153</top>
<right>402</right>
<bottom>323</bottom>
</rect>
<style>scrolling</style>
<autoSelect> <false /> </autoSelect>
<showLines> <false /> </showLines>
<wideMargins> <false /> </wideMargins>
<multipleLines> <false /> </multipleLines>
<reservedFamily> 0 </reservedFamily>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>left</textAlign>
<font>Geneva</font>
<textSize>12</textSize>
<textStyle>plain</textStyle>
<textHeight>16</textHeight>
<name>InfoFld</name>
<script></script>
</part>
<part>
<id>4</id>
<type>button</type>
<visible> <true /> </visible>
<reserved5> 0 </reserved5>
<reserved4> 0 </reserved4>
<reserved3> 0 </reserved3>
<reserved2> 0 </reserved2>
<reserved1> 0 </reserved1>
<enabled> <true /> </enabled>
<rect>
<left>22</left>
<top>113</top>
<right>138</right>
<bottom>136</bottom>
</rect>
<style>shadow</style>
<showName> <true /> </showName>
<highlight> <false /> </highlight>
<autoHighlight> <true /> </autoHighlight>
<sharedHighlight> <true /> </sharedHighlight>
<family>0</family>
<titleWidth>0</titleWidth>
<icon>0</icon>
<textAlign>center</textAlign>
<font>Chicago</font>
<textSize>12</textSize>
<textStyle>plain</textStyle>
<name>ColorCover on</name>
<script>on mouseUpglobal gColorCoverTrue,gDeskCoverTrueif gDeskCoverTrue = "true" thenanswer "First push the button" && quote & "DeskCover off." & quoteexit mouseUpend ifif gColorCoverTrue = "true" thenanswer "The Desktop is already Covered. First push the button" && quote & "ColorCover off." & quoteexit mouseUpend ifif gDeskCover ≠ "true" thenColorCover onif the result is empty thenput "true" into gColorCoverTrueelseanswer the resultend ifelseanswer "The Desktop is already Covered"end ifend mouseUp</script>
<script>on mouseUphide menubarhide titlebarput the screenRect into screenSizeput ((item 3 of screenSize)-(the width of the card window)) div 2 into cardTopLeftput "," & (((item 4 of screenSize)-(the height of the card window)) div 2) after cardTopLeftset the loc of the card window to cardTopLeftend mouseUp</script>